
<%@ page import="com.diaryBlogModule.DiaryEntity" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'diaryEntity.label', default: 'DiaryEntity')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
      <script type="text/javaScript" src="${resource(dir:'js/jquery',file:'jquery-1.4.min.js')}"></script>
      <script>
        $.getScript("http://fw.qq.com:80/ipaddress", function() {
            if(typeof IPData != "undefined") {
                //YoyoSite.Cookie.set("current_ip", IPData[2]+','+IPData[3]);
                alert(IPData);
            }
        });

      </script>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="">
                            
                            <td valign="top">${diaryEntityInstance?.diary?.diaryType.diaryType}标题:${fieldValue(bean: diaryEntityInstance, field: "diaryName")}</td>
                            
                        </tr>
                    
                        <tr class="prop">

                            <td valign="top" style="min-height:700px;height:600px;">${fieldValue(bean: diaryEntityInstance, field: "diaryContent").decodeHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${diaryEntityInstance.diaryEvaluation}" var="d">
                                    <li><g:link controller="diaryEvaluation" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                        </tr>
                    
                        <tr class="prop">
                            
                            <td valign="top" class="">所属日记本:<g:link controller="diary" action="show" id="${diaryEntityInstance?.diary?.id}">${diaryEntityInstance.diary.diaryName}12</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${diaryEntityInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
